package com.spheres.quiniela.domain

class FixtureNumber {
  Integer number
  FixtureNumberType type

  String getDescription(){
    if(type==FixtureNumberType.REGULAR)
      return "Jornada $number"
    if(type==FixtureNumberType.SECONDROUND)
     return "Octavos de Final"
    if(type==FixtureNumberType.QUARTERFINALS)
     return "Cuartos de Final"
    if(type==FixtureNumberType.SEMIFINALS)
     return "Semifinal"
    if(type==FixtureNumberType.THIRDPLACE)
     return "Tercer Lugar"
    if(type==FixtureNumberType.FINAL)
     return "Final"
  }

  static transients = ['description']
  static constraints = {
  }
}
